#include <QGuiApplication>
#include <QMetaType>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQmlComponent>
#include <QQuickWindow>
#include <QDebug>
#include <QVariant>
#include "ActivityItemModel.h"
#include "ActivityItemType.h"
#include "ActivityItem.h"
// QStandardItemModel derived class
#include <QStandardItemModel>

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);

    QQmlApplicationEngine engine;

    //[1]建立数据源
    //ActivityItemModel *model = new ActivityItemModel();
    //ActivityItem *item = new ActivityItem();
    //[2]
    //engine.rootContext ()->setContextProperty("activitiesModel", model);
    engine.load(QUrl(QStringLiteral("qrc:/QML/main.qml")));
    return app.exec();
}
